home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13600 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: mother.usf.edu!news
  2. From: yatesc@csee.usf.edu (Randy Yates)
  3. Newsgroups: comp.os.ms-windows.programmer.controls,comp.lang.c,comp.lang.c++
  4. Subject: Getting Text To Display In Win 3.1 Static 3-D Controls
  5. Date: 26 Mar 1996 01:01:53 GMT
  6. Organization: University of South Florida
  7. Message-ID: <4j7fm1$8b7@mother.usf.edu>
  8. NNTP-Posting-Host: ppp100.cfr.usf.edu
  9. Mime-Version: 1.0
  10. Keywords: 3-D,CTL3D
  11. X-Newsreader: WinVN 0.93.14
  12.  
  13. I am writing a Win 3.1 program and using 3-D controls directly on the
  14. client area of my application. I can create
  15. 3-D radiobuttons just fine. When I create static controls with no
  16. style attributes (a style of 0), they work fine. When I create static
  17. controls with a non-zero style, such as SS_GRAYFRAME in order to 
  18. make them have a 3-D outline, the text of the control disappears. 
  19.  
  20. I am trapping WM_CTLCOLOR and WM_SYSCOLORCHANGE messages like  so:
  21.  
  22.     case WM_CTLCOLOR:
  23.       hbrush = Ctl3dCtlColorEx(message, wParam, lParam);
  24.       if (hbrush)
  25.       {
  26.         return hbrush;
  27.       }
  28.       else
  29.       {
  30.         return DefWindowProc(hWnd, message, wParam, lParam);
  31.       }
  32.     break;
  33.       
  34.     case WM_SYSCOLORCHANGE:
  35.       return Ctl3dColorChange();
  36.     break;
  37.  
  38.  
  39. Can someone please tell me why this isn't working? 
  40.  
  41. -- 
  42. % Randy Yates                  % "...the answer lies within your soul
  43. % EE/Mathematics Student       %       'cause no one knows which side 
  44. % University of South Florida  %                   the coin will fall."
  45. % <yatesc@csee.usf.edu>        %  'Big Wheels', *Out of the Blue*, ELO   
  46.  
  47.